<?php $this->header();?>
<div class="wrap">
	<div class="nav">
    	<div class="return"><a href="/?g=Admin&m=<?php echo MODULE; ?>&a=index">返回上一级</a></div>
		<ul class="cc">
			<li class="current"><?php echo isset($_GET['id'])?'<a href="/?g=Admin&m='.MODULE.'&a=edit&id='.$_GET['id'].'">编辑内容</a>':'<a href="/?g=Admin&m='.MODULE.'&a=add">添加内容</a>' ?></li>
		</ul>
	</div>
    <form class="J_ajaxForm" action="<?php echo $actionUrl; ?>" method="post" enctype="multipart/form-data">
<div class="h_a">内容</div>
<div class="table_full">
	<table width="100%">
		<col class="th" />
		<col/>
                <?php foreach($field as $key => $value): ?>
		<tr>
                    <th><?php echo $value['name']; ?></th>
			<td>
                        <?php echo $func->formList($value); ?>
			</td>
		</tr>
                <?php endforeach; ?>
                
	</table>
	</div>
	<div class="btn_wrap">
		 <div class="btn_wrap_pd">
				<button type="submit" class="btn btn_submit J_ajax_submit_btn">提交</button>
		 </div>
	</div>
</form>
	
</div>
<?php $this->footer();?>